{extend  name="manage@public/layout" /}
{block name="content"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>商户详情 <small></small></h5>
                        <div class="ibox-tools">
                            <a href=" {eq name="info['is_agent']" value='1'}{:url('/manage/user')}{else/}{:url('/manage/user/agent')}{/eq}" class="close-link">
                                <i class="fa fa-reply-all">&nbsp;返回</i>
                            </a>
                        </div>
                    </div>  
                    <div class="ibox-content">
                        <form action="{:url('/manage/mchEdit')}" method="post" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">ID</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.id}" class="form-control">
                                    <input type="hidden" name="mid" value="{$info.id}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户号</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.mch}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">商户名称</label>
                                <div class="col-sm-3">
                                    <input type="text" name="mch_name" value="{$info.mch_name}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">联系方式</label>
                                <div class="col-sm-3">
                                    <input type="text" name="mobile" value="{$info.mobile}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-3">
                                    <input type="text" name="email" value="{$info.email}" class="form-control">
                                </div>
                            </div>
                            {eq name="info['is_agent']" value="1"}
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">代理商</label>
                                <div class="col-sm-3">
                                    <select name="agent_id" class="input-sm form-control input-s-sm inline">
                                        <option value="0">请选择代理商</option>
                                        {volist name="agent" id="vo"}
                                        <option  value="{$vo.auth_admin}" {notempty name="data"}{eq name="info['agent_id']" value="$vo.auth_admin"}selected{/eq}{/notempty} >{$vo.mch}[{$vo.mch_name}]</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">秘钥key</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.md5key}" class="form-control">
                                </div>
                            </div>
                            {else/}
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">代理费率</label>
                                <div class="col-sm-3">
                                    <input type="text" name="agent_rate" value="{$info.agent_rate}" class="form-control">
                                </div>
                            </div>
                            {/eq}
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">余额</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.balance}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">冻结金额</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.freeze}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">状态</label>
                                <div class="col-sm-3">
                                    <div class="radio i-checks">
                                        <label><input type="radio" name="status" {eq name="info['status']" value="1"}checked{/eq} value="1"> <i></i> 正常</label>
                                        <label><input type="radio" name="status" {eq name="info['status']" value="2"}checked{/eq} value="2"> <i></i> 禁用</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">入金</label>
                                <div class="col-sm-3">
                                    <div class="radio i-checks">
                                        <label><input type="radio" name="rukuan" {eq name="info['rukuan']" value="1"}checked{/eq} value="1"> <i></i> 正常</label>
                                        <label><input type="radio" name="rukuan" {eq name="info['rukuan']" value="2"}checked{/eq} value="2"> <i></i> 禁用</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">出款</label>
                                <div class="col-sm-3">
                                    <div class="radio i-checks">
                                        <label><input type="radio" name="chukuan" {eq name="info['chukuan']" value="1"}checked{/eq} value="1"> <i></i> 正常</label>
                                        <label><input type="radio"  name="chukuan" {eq name="info['chukuan']" value="2"}checked{/eq} value="2"> <i></i> 禁用</label>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">注册时间</label>
                                <div class="col-sm-3">
                                    <input type="text" disabled value="{$info.create_time}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>    
            </div>
        </div>
    </div>
    {/block}
